package com.lxp.base.net.self;


import com.lxp.base.net.builder.GetBuilder;
import com.lxp.base.net.builder.PostBuilder;

/**
 * @author liuxiaopeng
 * @version V1.0.0
 * @time 2016/12/4
 * @describe 网络请求
 */

public class BaseHttp {

    public IBaseHttp mHttp;

    /**
     * construct
     */
    public BaseHttp(HttpFactory.HttpType httpType) {
        mHttp = HttpFactory.getInstance().getHttp(httpType);
    }

    public GetBuilder get() {
        return new GetBuilder(mHttp);
    }

    public PostBuilder post() {
        return new PostBuilder(mHttp);
    }
//
//    public UploadBuilder upload() {
//        return new UploadBuilder(this);
//    }
//
//    public DownloadBuilder download() {
//        return new DownloadBuilder(this);
//    }


}
